package com.inspur.security.cbb3.kms.enums;

/**
 * @author: lijunchang
 * @Description: 订单状态，待处理，已完成
 * @Date: 2020/10/19
 */
public enum KeyOrderStatus {
    /**
     * 其他
     */
    OTHER,
    /**
     * 待处理
     */
    Pending,
    /**
     * 成功
     */
    Success,
    /**
     * 失败
     */
    Failed;

    public static KeyOrderStatus getByType(String type){
        for (KeyOrderStatus constants : values()) {
            if (constants.name().equalsIgnoreCase(type)) {
                return constants;
            }
        }
        return OTHER;
    }
}
